package indi.zn.script.groovy;

import java.io.File;
import java.io.InputStream;
import java.io.Reader;

import groovy.lang.GroovyObject;
import groovy.lang.Script;

public interface GroovyParser {

	 Class<?> parseGroovyClass(String groovyCode);
	 Class<?> loadGroovyClass(String groovyName);
	 Class<?> parseGroovyClassByFile(File file);
	 
	 GroovyObject parseToGroovyObject(String groovyCode,Object...comsparms);
	 
	public Script parseToScript(String text);
		
	public Script parseToScript(Reader reader);
		
	public Script parseToScript(File file);
		
	public Script parseToScript(InputStream in);
}
